<div style="font-size:14px; font-weight:bold;">Add a network</div>
<?php
if (eregi("add.php",$HTTP_SERVER_VARS['PHP_SELF']) || eregi("add.php",$_SERVER['PHP_SELF'])) {
	echo "<html>\r\n<head>\r\n<title>Invalid Access</title>\r\n</head>\r\n<body><h3>Invalid Access</h3>\r\nInvalid Access of this file is forbidden.\r\n</body>\r\n</html>";
	exit;
}
if(isset($_SESSION['error']) || isset($error))
{
    if(isset($_SESSION['error']) && !isset($error))
	{
	    $error = $_SESSION['error'];
	}
    echo "<div style=\"font-size:12px; color:#FF0000\">".$error."</div>";
	unset($_SESSION['error']);
}elseif(isset($_SESSION['msg']))
{
    echo "<div style=\"font-size:12px; color:#0000FF\">".$_SESSION['msg']."</div>";
	unset($_SESSION['msg']);

}
?>
<form action="index.php?m=networks&add=1" method="post">
<table class="settings_table" cellspacing="10">
<tr><td>Name</td><td><input type="text" name="network_name" value="<?=$name?>"  /></td></tr>
<tr><td>Status</td><td><select name="status"><?=selection()?></select></td></tr>
<tr><td colspan="2" style="text-align:right; padding-top:8px"><input type="submit" name="addnetwork" value="Add Network" /></td></tr>
</table>
</form>

	
